package com.aierjun.ani.net.OkGo.okupload;

import android.content.Context;
import android.content.Intent;

import com.lzy.okgo.model.HttpParams;

import java.io.File;

/**
 * Created by Ani_aierJun on 2017/10/19.
 */

public class TestSample {
    private void test(Context context,String path) {
        HttpParams httpParams = new HttpParams();
        httpParams.put("token", "BKXZRFVXGSHVHTMTDJVW2OI98FQTGCPO8IGHUO7Y5KXCH0L7HXJUHJHYM1FKIDYX");
        httpParams.put("uid", "95");
        httpParams.put("typr", "car");
        Intent intent = new Intent();
        intent.putExtra("URL", "http://api.app.qiche100.com/order/upfile/option/upimage");
        intent.putExtra("Tag", new File(path).getName());
        intent.putExtra("File", path);
        intent.putExtra("HttpParams",httpParams);
        intent.setClass(context, UploadingActivity.class);
        context.startActivity(intent);
    }
}
